package com.mhxy.enums;

import lombok.Getter;

@Getter
public enum CheckBoxType {
    // 单人任务
    SINGLE_TASK_GGL("singleC1", "刮刮乐"),
    SINGLE_TASK_SM("singleC2", "自动师门"),
    SINGLE_TASK_SB("singleC4", "领取双倍"),
    SINGLE_TASK_BBT("singleC5", "藏宝图"),
    SINGLE_TASK_USE_BBT("singleC6", "使用宝图"),
    SINGLE_TASK_SELL("singleC7", "物品卖银币"),
    SINGLE_TASK_MJ20("singleC8", "秘境降妖(20)"),
    SINGLE_TASK_MJ25("singleC9", "秘境降妖(25)"),
    SINGLE_TASK_YB("singleC10", "押普通镖"),
    SINGLE_TASK_SJQY("singleC11", "三界奇缘"),
    SINGLE_TASK_KJ("singleC12", "科举考试"),
    // 多人任务
    MULTI_TASK_FB1("multiC1", "普通副本1"),
    MULTI_TASK_FB2("multiC2", "普通副本2"),
    MULTI_TASK_FB3("multiC3", "普通副本3"),
    MULTI_TASK_XS1("multiC4", "侠士副本1"),
    MULTI_TASK_XS2("multiC5", "侠士副本2"),
    MULTI_TASK_ZG("multiC6", "抓鬼"),
    MULTI_TASK_CW("multiC7", "召唤灵乐园"),
    MULTI_TASK_MHT("multiC8", "勇闯迷魂塔"),
    MULTI_TASK_CS("multiC9", "门派闯关"),
    MULTI_TASK_JH("multiC10", "剑会"),
    MULTI_TASK_LT("multiC11", "擂台大挑战"),

    // 活动任务
    ACTIVITY_TASK_USE_HL("otherC1", "使用活力"),
    ACTIVITY_TASK_SELL_F("otherC2", "出售临时符"),
    ACTIVITY_TASK_SLEEP("otherC3", "回家睡觉"),
    ACTIVITY_TASK_FACTION("otherC4", "帮派任务"),
    ;

    private final String checkBoxId;
    private final String taskName;

    CheckBoxType(String checkBoxId, String taskName) {
        this.checkBoxId = checkBoxId;
        this.taskName = taskName;
    }

    public static CheckBoxType getByCheckBoxId(String checkBoxId) {
        for (CheckBoxType type : values()) {
            if (type.getCheckBoxId().equals(checkBoxId)) {
                return type;
            }
        }
        return null;
    }

    public static CheckBoxType getByTaskName(String taskName) {
        for (CheckBoxType type : values()) {
            if (type.getTaskName().equals(taskName)) {
                return type;
            }
        }
        return null;
    }
} 